from src.game.block.handler import BlockHandler
from src.game.block.block import Block
from src.handler.event import EventHandler
from mods.blocks.handler import SpriteRegistryHandler
from src.config.events import *

def init(client):
    print("blocks initialised")
    EventHandler.subscripe(SPRITEHANDLER_REGISTRY, SpriteRegistryHandler())

    BlockHandler.register("spawner", Block)
    BlockHandler.register("dirt", Block)
    BlockHandler.register("rock", Block)
